package com.lkd.result;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: Z.lx
 * @Date: 2025/8/19 20:44
 * @Description:
 **/
@Data
public class TableInfo<E> implements Serializable {
    private Integer pageIndex;//当前页码
    private Integer pageSize ;//每页显示的记录数
    private Integer totalPage;//总记录数
    private  Long totalCount;//总页数
    private List<E> currentPageRecords;//当前页数据

    public TableInfo(Integer pageIndex, Integer pageSize, Integer totalPage, Long totalCount, List<E> currentPageRecords) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.totalPage = totalPage;
        this.totalCount = totalCount;
        this.currentPageRecords = currentPageRecords;
    }
    public TableInfo(){}
}
